/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-11-03 11:29:09
 * @LastEditors: GGB
 * @LastEditTime: 2021-11-10 18:31:16
 */
import { axios } from '@/utils/request'

const api = {
  all: '/area/all',
  tree: '/area/tree'
}

/**
 * 获取所有地区
 */
export function all(params) {
  return axios({
    url: api.all,
    method: 'get',
    params
  })
}

/**
 * 获取所有地区(树状)
 */
export function tree(params) {
  return axios({
    url: api.tree,
    method: 'get',
    params
  })
}
